package com.uk.ui.manaxhim;

import com.uk.data.containers.UserContainer;
import com.uk.data.entities.Parameters;
import com.uk.myclasses.ATable;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.BeanItemContainer;

public class ParamsList extends ATable {

	public ParamsList(ManaxhimPanel manaxhimPanel) {
		super();
		setSizeFull();
		this.setContainerDataSource(new BeanItemContainer<Parameters>(Parameters.class, manaxhimPanel.getFaturaBean().getParameters()));
		this.setVisibleColumns(new Object[]{"param", "value"});
		this.setColumnHeaders(new String[]{"PARAMETRI", "VLERA"});
		this.setColumnWidth("param",150);
		this.setPageLength(10);
		setSelectable(true);
		setImmediate(true);
		setNullSelectionAllowed(false);
		this.addListener((ValueChangeListener)manaxhimPanel);
	}

	
	
}
